<template>
  <div>
      <div class="top">
          <a href="#" @click="goback"></a>
          <p>银行卡</p>
      </div>
      <div class="bank">
          <p>工商银行(8982)</p>
          <p>农商银行(7208)</p>
          <p>建设银行(6207)</p>
          <p>中国银行(7949)</p>
          <p>招商银行(6560)</p>
          <p>浦发银行(6209)</p>
          <p>兴业银行(5476)</p>
          <p v-for="(item,index) in this.global.bank" :key="index">{{item.name}}({{item.number}})</p>
      </div>
      <div class="footer">
          <p>设置新的银行卡</p>
          <router-link to="addbank">
          <li>
              <a href="#"></a>
              <span>添加</span>
              <img src="../../assets/img/right_1.png" alt="">
          </li>
          </router-link>
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return{

        }
    },
    methods:{
        goback(){
            this.$router.go("-1")
        }
    }
    
}
</script>

<style lang="less" scoped>
.top{
    background-color: #ff8f87;
    display: flex;
    align-items: center;
    height: 40px;
    a{
        width: 20px;
        height: 20px;
        background: url("../../assets/img/left.png")no-repeat;
        background-size: 100%;
    }
    p{
        margin: 0;
        margin-left: 40%;
        color: #fff;
    }
}
.bank{
    p{
        padding: 10px;
        margin: 0;
        font-size: 14px;
        color: #000;
        border-bottom: 1px solid #f6f6f6;
        
    }
}
.footer{
    position: fixed;
    bottom: 10px;
    p{
        font-size:13px;
        margin-left: 5px;
        color: #000;
    }
    li{
        display: flex;
        align-items: center;
        width: 100%;
        a{
            width: 20px;
            height: 20px;
            background: url("../../assets/img/user/add.png") no-repeat;
            background-size: 100%;
            margin-left: 10px;
        }
        span{
            font-size: 14px;
            margin-left: 10px;
        }
        img{
            width: 20px;
            height: 20px;
            margin-left: 260px;
        }
    }
}
</style>